<?php

return [


        'NOT_EXIST'=>['code'=>1001,'msg'=>'记录不存在'],
        'PARAM_EMPTY'=>['code'=>1002,'msg'=>'参数不能为空'],
        'PARAM_ERROR'=>['code'=>1003,'msg'=>'参数错误'],
        'GET_FACEID_FAILED'=>['code'=>1004,'msg'=>'获取faceID失败！'],
        //手机
        'INVALID_PHONE'=>['code'=>2001,'msg'=>'手机号格式错误！'],
        'TOO_FREQUENT'=>['code'=>2002,'msg'=>'操作过于频繁！'],
        'SEND_SMS_FAILED'=>['code'=>2003,'msg'=>'发送验证码失败！'],
        'CAPTCHA_EXPIRED'=>['code'=>2004,'msg'=>'验证码失效，请重新发送！'],

        //商城
        'COUPON_NOT_EXIST'=>['code'=>12000,'msg'=>'优惠券不存在'],
        'COUPON_OWNER_ERROR'=>['code'=>12001,'msg'=>'优惠券不属于该用户'],
        'CREATE_ORDER_ERROR'=>['code'=>12002,'msg'=>'生成订单失败'],
        'CONFIRM_GET_FAILED'=>['code'=>12003,'msg'=>'确认收货失败'],
        'HAS_PAID'=>['code'=>12004,'msg'=>'订单已支付'],
        'ORDER_NOT_EXISTS'=>['code'=>12005,'msg'=>'订单不存在！'],
        'PAID_FAILED'=>['code'=>12006,'msg'=>'发起支付失败！'],

        //后台
        'ADD_PRODUCT_FAILED'=>['code'=>12000,'msg'=>'添加失败'],
        'DELETE_PRODUCT_FAILED'=>['code'=>10015,'msg'=>'删除失败'],
        'DELETE_FACORY'=>['code'=>10010,'msg'=>'该品牌已有设备在使用，不支持删除。'],
        'DELIVER_FAILED'=>['code'=>10020,'msg'=>'发货失败。'],
        'PREPARE_FAILED'=>['code'=>10021,'msg'=>'备货失败。'],

        //渠道
        'ACCOUNT_PASSWORD_NOT_EMPTY'=>['code'=>10003,'msg'=>'账号密码不能为空'],
        'LOGIN_VERIFY_ERROR'=>['code'=>10003,'msg'=>'账号密码错误'],
        'PHONE_NOT_REGISTERED'=>['code'=>10003,'msg'=>'号码尚未注册'],
        'VERIFY_CODE_ERROR'=>['code'=>10004,'msg'=>'验证码错误'],
        'PHONE_CODE_ERROR'=>['code'=>10004,'msg'=>'验证码未找到'],
        'SMS_CODE_ERROR'=>['code'=>10007,'msg'=>'短信验证码错误'],
        'PASSWORD_NOT_SAME'=>['code'=>10008,'msg'=>'密码不一致'],
        'SMS_SEND_ERROR'=>['code'=>10011,'msg'=>'验证码发送失败'],
        'SMS_GET_TOO_OFTEN'=>['code'=>10012,'msg'=>'验证码获取过于频繁'],
        'PASSWORD_WRONG'=>['code'=>10012,'msg'=>'密码错误'],
        'CHANNEL_NOT_ENABLED'=>['code'=>10012,'msg'=>'账号正在审核，暂不能登录'],
        'USER_NOT_FOUND'=>['code'=>10013,'msg'=>'用户不存在'],
        'REGISTER_NUMBER_ERROR'=>['code'=>10013,'msg'=>'注册编号错误'],
        'COMPANY_EXIST' => ['code'=>10014,'msg'=>'公司名称已经存在'],

        //Token
        'TOKEN_EXPIRE'=>['code'=>10080,'msg'=>'用户token过期'],
        'TOKEN_INVALID'=>['code'=>10081,'msg'=>'无效的token'],
        'NOT_LOGIN'=>['code'=>20000,'msg'=>'未登录'],



        //Pay
        'PAY_SOURCE_ERROR'=>['code'=>6000,'msg'=>'支付通道错误'],
        'PAY_SOURCE_NOT_EXIST'=>['code'=>6001,'msg'=>'支付通道不存在'],
        'WITHDRAW_CASH_ERROR'=>['code'=>6002,'msg'=>'提现失败'],
        'WITHDRAW_CASH_AMOUNT'=>['code'=>6003,'msg'=>'提现金额必须 >= 100'],
        'WITHDRAW_CASH_AMOUNT_MORE'=>['code'=>6003,'msg'=>'提现金额不能大于20万'],
        'WITHDRAW_CASH_AMOUNT_INSUFFICIEN'=>['code'=>6003,'msg'=>'可提现金额不足'],
        'WITHDRAW_CASH_MONEY_TOO'=>['code'=>6004,'msg'=>'已成功打款！'],
        'WITHDRAW_CASH_MONEY_STATUS_ERROR'=>['code'=>6005,'msg'=>'此提现状态有误！'],


        //UPLOAD
        'UPLOAD_FAID'=>['code'=>7000,'msg'=>'上传失败'],
        'UPLOAD_IMG_NOT_FOUND'=>['code'=>7001,'msg'=>'上传图片不存在'],
        'UPLOAD_OSS_ERROR'=>['code'=>7002,'msg'=>'上传OSS失败'],

        // reward
        'ALREADY_REWARD'=>['code'=>8000,'msg'=>'已结打赏过不要重复打赏！'],
        'ERROR_TARGET_USRE_NUM'=>['code'=>8001,'msg'=>'请设置目标用户数!'],
        'NOT_FOUND_SUC_CHAIN'=>['code'=>8003,'msg'=>'未发现成功打赏链'],
        'NOT_ALLOW_LOWER_FEE'=>['code'=>8004,'msg'=>'金额不能修改比原来的小'],


        'NOT_ENOUGH_MONEY'=>['code'=>8002,'msg'=>'可用余额不足!'],
        //内容审核
        'ILLEGAL_IMAGES'=>['code'=>9000,'msg'=>'上传图片内容违规'],
        'ILLEGAL_TEXTS'=>['code'=>9001,'msg'=>'内容包含敏感词'],


        //公共
        'ADD_FAILURE'=>['code'=>11000,'msg'=>'添加错误'],
        'UPDATE_FAILURE'=>['code'=>11000,'msg'=>'更新错误'],
        'DELETE_FAILURE'=>['code'=>11000,'msg'=>'删除错误'],
        'SELECE_FAILURE'=>['code'=>11000,'msg'=>'查询错误'],

        //任务模块
        'REPEAT_RECEIVE'=>['code'=>6000,'msg'=>'不能重复领取任务'],
        'NOT_PERIOD_TIME'=>['code'=>6001,'msg'=>'不在任务时间段'],

        'DEVICE_BUNDLED'=>['code'=>7000,'msg'=>'设备已被绑定'],
        'ERROR_BUNDLED'=>['code'=>7000,'msg'=>'绑定失败'],

        'SIGN_ERROR'=>['code'=>6101,'msg'=>'签到失败'],
];
